package com.j283_5.wisdom_park.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

/**
 * <p>
 * 评论表
 * </p>
 *
 * @author laoda
 * @since 2022-04-28
 */
public class Comments implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 自增id
     */
    @TableId(value = "comm_id", type = IdType.AUTO)
    private Integer commId;

    /**
     * 评论人
     */
    private String commName;

    /**
     * 评论信息
     */
    private String commMsg;

    /**
     * 评论状态（0已删除 1正常）
     */
    private Integer commState;

    /**
     * 评论时间（默认当前时间）
     */
    private LocalDateTime commSendTime;


    public Integer getCommId() {
        return commId;
    }

    public void setCommId(Integer commId) {
        this.commId = commId;
    }

    public String getCommName() {
        return commName;
    }

    public void setCommName(String commName) {
        this.commName = commName;
    }

    public String getCommMsg() {
        return commMsg;
    }

    public void setCommMsg(String commMsg) {
        this.commMsg = commMsg;
    }

    public Integer getCommState() {
        return commState;
    }

    public void setCommState(Integer commState) {
        this.commState = commState;
    }

    public LocalDateTime getCommSendTime() {
        return commSendTime;
    }

    public void setCommSendTime(LocalDateTime commSendTime) {
        this.commSendTime = commSendTime;
    }

    @Override
    public String toString() {
        return "Comments{" +
        "commId=" + commId +
        ", commName=" + commName +
        ", commMsg=" + commMsg +
        ", commState=" + commState +
        ", commSendTime=" + commSendTime +
        "}";
    }
}
